import Vue from 'vue'
import App from './App'
import store from './store/index'
import mixins from './mixins';

import './../static/css/style.css'

Vue.config.productionTip = false
App.mpType = 'app'
Vue.mixin(mixins);

const app = new Vue({
    ...App,
    store
})

Vue.prototype.$store = store;

app.$mount()


export default {
    config: {
        // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
        pages: [
            '^pages/index/main',
            'pages/Product/main',
            'pages/Dynamic/main',
            'pages/WebSite/main',
        ],
        window: {
            backgroundTextStyle: 'light',
            navigationBarBackgroundColor: '#fff',
            navigationBarTitleText: '壹立科技',
            navigationBarTextStyle: 'black',
            backgroundColor: '#ffffff'
        },
        tabBar: {
            color: '#A8A8A8',
            borderStyle: 'white',
            selectedColor: '#00a87f',
            list: [
                {
                    iconPath: 'static/tabs/home.png',
                    selectedIconPath: 'static/tabs/home.png',
                    pagePath: 'pages/index/main',
                    text: '名片'
                },
                {
                    iconPath: 'static/tabs/home.png',
                    selectedIconPath: 'static/tabs/home.png',
                    pagePath: 'pages/Product/main',
                    text: '产品'
                },
                {
                    iconPath: 'static/tabs/home.png',
                    selectedIconPath: 'static/tabs/home.png',
                    pagePath: 'pages/Dynamic/main',
                    text: '动态'
                },
                {
                    iconPath: 'static/tabs/home.png',
                    selectedIconPath: 'static/tabs/home.png',
                    pagePath: 'pages/WebSite/main',
                    text: '官网'
                },
            ]
        }
    }
}
